#include "Stack.h"
#include "Regulation.h"

int main()
{
	//string s = "1.02+5.32-8/8";
	string s;
	cout << "Please enter an expression: ";
	cin >> s;
	Regulation r;
	Stack s1;
	if (r.IsRegulation(s))
	{
		s1.setPostfix(s);
		cout << "Postfix expression is: "<< s1.getPostfix() << endl;
		s1.setCalResults();
		cout << "The result is: " << s1.getResult() << endl;		
	}
	return 0;
}
